#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/9/26 10:45
# @Author  : Crissu
# @Site    : 
# @File    : makeFolders.py
# @Software: PyCharm
'''
    根据一个文件夹里的情况，创建一个其他文件夹
'''
from configs import makeFolders_config
from utils import universal_util
import os

def makeFolders():
    rawPath = makeFolders_config.FromPath
    newPath = makeFolders_config.ToPath
    names = os.listdir(rawPath)
    num = 0
    for name in names:
        num += 1
        newName = newPath + name
        universal_util.MakeFloder(newName)
    print("makeFolders结束, 共创建", num, "个文件夹")



